package vehicle;

public class Custom {
	
	public void byVehicle(Vehicle vel,double distance) {
		System.out.println("乘客要乘坐交通工具");
		// 调用重写的方法，传入的距离需要从参数传入
		vel.getReachTime(distance);
	}
}
